<template>
  <div class="hom">
    <div class="resume">
      <div class="studentIocn">
        <img src="@/assets/images/touxiang.png" alt="" />
      </div>
      <div class="studenPhon">
        <div>张文雅</div>
        <div>131****8899</div>
      </div>
      <div class="label">
        <div class="charac"></div>
        <div class="tetxCss">启用中</div>
        <div class="tetxCss">吴忠市第三师范中学</div>
        <div class="tetxCss">八年级9班</div>
      </div>
    </div>
    <div class="taersic">
      <div
        :class="tableTpye == '1' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '1'"
      >
        基本信息
      </div>
      <div
        :class="tableTpye == '2' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '2'"
      >
        受教经历
      </div>
      <div
        :class="tableTpye == '3' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '3'"
      >
        家庭情况
      </div>
      <div
        :class="tableTpye == '4' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '4'"
      >
        心理档案
      </div>
      <div
        :class="tableTpye == '5' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '5'"
      >
        自我评价
      </div>
      <div
        :class="tableTpye == '6' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '6'"
      >
        我的测评
      </div> <div
        :class="tableTpye == '7' ? 'pitchOn' : 'unselected'"
        @click="tableTpye = '7'"
      >
        我的辅导
      </div>
    </div>
    <div class="basic">
      <div class="essential" v-if="tableTpye == '1'">
        <div class="portrait">
          <img src="@/assets/images/touxiang.png" alt="" />
        </div>
        <div class="information">
          <el-form ref="form" :model="form"  label-width="80px">
            <el-row>
              <el-col :span="12">
                <el-form-item label="学生姓名" prop="name">
                  <el-input v-model="form.name" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="学 校" prop="schoolId">
                  <el-input v-model="form.schoolName" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="联系方式" prop="phoneNum">
                  <el-input v-model="form.phoneNum" placeholder="联系方式" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="班 级" prop="classId">
                  <el-input v-model="form.className" placeholder="联系方式" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="学籍号" prop="studentCode">
                  <el-input
                    v-model="form.studentCode"
                    placeholder="请输入学生学籍号"
                    maxlength="30"
                  />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="年 龄">
                  <el-input
                    v-model="form.age"
                    placeholder="请输入学生年龄"
                    maxlength="30"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="性 别" prop="sex">
                  <el-input
                    v-model="form.sexText"
                    placeholder="请输入学生学籍号"
                    maxlength="30"
                  />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="民 族">
                  <el-input v-model="form.nation" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="民 族">
                  <el-input v-model="form.nation" />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
        </div>
      </div>
      <div class="appraisal" v-if="tableTpye == '6'">
 <appraisal />

      </div>
       <div class="tutorship" v-if="tableTpye == '7'">
 <tutorship />

      </div>
    </div>
  </div>
</template>

<script>
import appraisal from "../components/Appraisal"
import tutorship from "../components/Tutorship"
export default {
  components: { appraisal,tutorship },
  data() {
    return {
      tableTpye: "1",
      form: {},
    };
  },
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped lang="scss">
.hom {
  padding: 20px 20px;
}
img {
  width: 100%;
  height: 100%;
}
.resume {
  width: 100%;
  height: 160px;
  border: 1.5px solid #0099ff;
  border-radius: 5px;
  display: flex;
  .studentIocn {
    width: 120px;
    height: 120px;
    margin: auto 25px;
    img {
      border-radius: 50%;
    }
  }
  .studenPhon {
    width: 160px;
    height: 60px;
    margin: auto 0;
    div:nth-child(1) {
      margin-bottom: 10px;
    }
  }
  .label {
    height: 40px;
    margin-top: 55px;
    display: flex;
    .charac {
      width: 20px;
      height: 20px;
      background-color: red;
      margin-right: 10px;
      border-radius: 3px;
    }
    .tetxCss {
      height: 22px;
      line-height: 22px;
      border: 1px solid #0099ff;
      border-radius: 5px;
      padding: 0 5px;
      margin-right: 20px;
    }
  }
}
.taersic {
  width: 600px;
  border: 1px solid #0099ff;
  border-bottom: 0px;
  border-radius: 5px 5px 0 0;
  margin-top: 30px;
  display: flex;
  .pitchOn {
    width: 120px;
    height: 30px;
    line-height: 35px;
    text-align: center;
    background-color: #00ffff;
    border-right: 1px solid #0099ff;
  }
  .unselected {
    width: 120px;
    height: 30px;
    line-height: 35px;
    text-align: center;
    border-right: 1px solid #0099ff;
  }
}
.basic {
  width: 100%;
  border: 1.5px solid #0099ff;
  border-radius: 5px;
  .essential {
    display: flex;

    .portrait {
      width: 20%;

      border-right: 1px solid #0099ff;
      position: relative;
      img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        width: 160px;
        height: 160px;
        border-radius: 50%;
      }
    }
    .information {
      width: 60%;
      padding: 30px 50px;
    }
  }
}
</style>
